@import './color'

$width = 5rem
$fontsize = 3rem
$height = $fontsize * 2 + 1rem // 避免一行放不下
$margin = 1.5rem
$head = $height + 2 * $margin

.card
  width $width
  height auto
  text-align center
  border-radius $margin $margin 0 0
  border 0.1rem solid $fg
  border-bottom none

  z-index 50
  transform translateY(- $head)
  background-color $bg
  transition all 0.2s

  &.lack
    background-color $bg2
  &:not(.lack).available
    cursor pointer
  &.available:hover
    z-index 51
    transform translateY(-100%)
    &:not(.lack)
      box-shadow 0 0 0.5rem $sd

.name
  writing-mode vertical-rl
  height $height
  margin $margin 0
  font-size $fontsize
  line-height $width

.section
  margin 1rem 0
  line-height 1.3

.title
  font-weight bold
  margin-bottom 0.3rem

.select
  top 100%